﻿using System.Collections;

namespace winS.Unity.Process
{
    /// <summary>
    /// 等待步骤.
    /// 等待步骤将在等待 n 秒后再向后执行
    /// </summary>
    public class WaitStep : GeneralStep
    {
        public float duration = 2f;

        public override IEnumerator Execute(ProcessContext processContext)
        {
            yield return Coroutine.Wait(duration);
        }
    }
}